package com.szit.deviceclient.feign.fallback;

import com.szit.deviceclient.feign.UserFeign;
import com.szit.util.CodeMsg;
import com.szit.util.Result;
import com.szit.util.vo.DeviceUserInfo;
import org.springframework.stereotype.Component;

/**
 * @author wyler
 * @date 2020-10-15
 */
@Component
public class UserFeignFallbackFactory implements UserFeign {
    @Override
    public Result insertDeviceUser(DeviceUserInfo deviceUserInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result deleteDeviceUser(DeviceUserInfo deviceUserInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result updateDeviceUser(DeviceUserInfo deviceUserInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result selectAllDeviceUser(Integer pageNum, Integer pageSize) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }
}
